package bulk_param.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import bulk_param.view.Inactive_Contact_Num_View;


public class RadioButtonInactivationController implements ActionListener{
	
	private Inactive_Contact_Num_View inactive_Contact_Num_View;

	
	public RadioButtonInactivationController(Inactive_Contact_Num_View inactive_Contact_Num_View){
		this.inactive_Contact_Num_View=inactive_Contact_Num_View;
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		
		if(arg0.getSource().equals(inactive_Contact_Num_View.national)){
			System.out.println(" National ");
			inactive_Contact_Num_View.lbPays.setVisible(false);
			inactive_Contact_Num_View.cbPays.setVisible(false);
			}
		else if(arg0.getSource().equals(inactive_Contact_Num_View.international)){
			System.out.println(" International ");
			inactive_Contact_Num_View.lbPays.setVisible(true);
			inactive_Contact_Num_View.cbPays.setVisible(true);
			}
	}
}


